package com.nondo.dean.dealer.model.result;

import com.nondo.dean.common.tool.BeanUtils;
import com.nondo.dean.dealer.domain.Store;

import java.util.List;

/**
 * @author xiaofan
 * @Description:
 * @throws
 * @date 2018-05-1110:21
 * @Version 0.1
 */
public class StoreResult {

    /**
     * 店铺名称
     */
    private  String name;

    /**
     * 店铺图片
     */
    private  String logo;
    /**
     * 店铺地址
     */
    private String address;

    /**
     * 联系电话
     */
    private String phone;
    
    /**
     * 经度坐标点
     */
    private String longitude;
    
    /**
     * 纬度坐标点
     */
    private String latitude;

    /**
     * 店铺产品
     */
    private List<StoreProductResult> storeProductResultList;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public List<StoreProductResult> getStoreProductResultList() {
        return storeProductResultList;
    }

    public void setStoreProductResultList(List<StoreProductResult> storeProductResultList) {
        this.storeProductResultList = storeProductResultList;
    }

    public static StoreResult coverToBean(Store store){
        StoreResult bean = new StoreResult();
        BeanUtils.copy(store,bean);

        return bean;
    }
}
